export const withInstall = function (options: any) {
  options.install = (app: any) => {
    const { name } = options
    app.component(name, options)
  }
  return options
}
